package com.jic.manager.service;

import com.jic.common.base.vo.RestResult;
import com.jic.manager.api.manage.SysDeptApi;
import com.jic.manager.entity.SysDept;
import com.jic.manager.request.MerchantRequest;
import com.jic.manager.response.MemMerchantInfoResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import com.jic.manager.request.SysDeptRequest;

import java.util.List;


/**
 * 部门信息表
 * @author :
 * @email :
 * @since : 2020-02-26 09:39:35
 * @version : v1.0.0
 */
public interface SysDeptService {

    RestResult<String> queryDeptNameById(Long deptId);

    List<Long> queryChildListById(Long deptId);

    RestResult<String> queryChildNameById(Long deptId);

    RestResult<Long> updateMerchantScopeApplicationById(MerchantRequest merchantRequest);

    MemMerchantInfoResponse getGrowhtScopeInfo(Long merchantId);

    RestResult checkApplication(Long deptId);

    /*通过商家或店铺名称查询deptId*/
    RestResult<Long> getDeptIdByMsName(String msName);

    List<Long> querymMerchantOrStoreListById(Long deptId);

    List<Long> querymMerchantOrStoreListByName(String name);

    //查询 商家、店铺的所属子平台
    RestResult<String> queryChildNameByDeptId(Long deptId,Long deptType);

    /*通过商家或店铺deptId 查询所属子平台deptId*/
    Long getDeptIdByMsId(SysDeptRequest sysDept);

    /*通过商家id查询名称*/
    RestResult<String> queryMerchantNameById(Long businessId,Long deptType);

    List<SysDept> query(SysDept sysDept);


}